import Koa from "koa";
import Cors from 'koa-cors'
import {koaBody} from "koa-body";
import router from "./router/router.js";

const app = new Koa()
app.use(Cors())
app.use(koaBody())
app.use(router.routes())
app.listen(8080,()=>{
    console.log("http://127.0.0.1:8080")
})